<meta charset="utf-8"/>
<?php

//这个用于判断用户是否登录成功

  include "comm.php";//用户登录
  include "conn.inc.php";//查询用户权限

  echo  "用户".$_COOKIE['username']."您好!这是网站首页";

  echo "您的权限如下：<br/>";

  $sql = "select allow_1,allow_2,allow_3,allow_4 from users where id='{$_COOKIE["uid"]}'";

  $result = $mysql->Query($sql);

  //$user = $result->fetch_assoc();

  if($user['allow_1']){
  	echo "1111111111<br/>";
  }

  if($user['allow_2']){
  	echo "222222222<br/>";
  }

  if($user['allow_3']){
  	echo "333333333<br/>";
  }

  if($user['allow_4']){
  	echo "4444444444<br/>";
  }

?>
    <a href="two.php">第二页</a><br/>
    <a href="three.php">第三页</a><br/>
    <a href="logout.php">退出</a><br/>

















